package com.jvxb.manage.livable.entity;

import java.io.Serializable;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
/**
 * @author jvxb
 * @since 2022-02-15
 */
@Data
@TableName("db_monitor_index")
public class DbMonitorIndex implements Serializable {

    
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "指标类型 MySQL，Redis，MongoDB，ES，Host...")
    private String moniObjType;
    @ApiModelProperty(value = "指标名")
    private String metricName;
    @ApiModelProperty(value = "指标描述")
    private String metricDescription;
    @ApiModelProperty(value = "指标单位")
    private String metricUnit;
    @ApiModelProperty(value = "是否常用指标：0否/1是")
    private Integer isCommon;
    @ApiModelProperty(value = "排序，值越大位置越靠前")
    private Integer weight;
    @ApiModelProperty(value = "是否使用：0否/1是")
    private Integer inUse;

    public static final String ID = "id";

    public static final String MONI_OBJ_TYPE = "moni_obj_type";

    public static final String METRIC_NAME = "metric_name";

    public static final String METRIC_DESCRIPTION = "metric_description";

    public static final String METRIC_UNIT = "metric_unit";

    public static final String ISCOMMON = "is_common";

    public static final String WEIGHT = "weight";

    public static final String IN_USE = "in_use";
    public static final Integer IN_USE_YES = 1;
    public static final Integer IN_USE_NO = 0;

}
